import java.io.*;
import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int ans = 1,now = 1;
        int a = cin.nextInt(), b;
        int tot = 0;
        while(--n>0){
            b = cin.nextInt();
            if(a>=b) now=0;
            ++now;
            a = b;
            if(((++tot)&16384)==0) System.gc();
            ans = Math.max(ans,now);
        }
        System.out.println(ans);
    }
}